{php $records2=tag("table=category&condition=moduleid=".$printmoduleid." and parentid=0&pagesize=".$printinfocount."&order=listorder,catid&template=null");}
{if $records2}
<div class="infomin05 item-top clearfix">
	<div class="clearfix">
		<div class="col-sm-3 menu">
			<div class="scroll0{$objectcount} row">
				{loop $records2 $k $r2}
				<span class="texttitle{if $k==0} active first{/if}" title="{strip_tags($r2[catname])}">{strip_tags($r2[catname])}</span>
				{/loop}
			</div>
		</div>
		{php $printinfocount=$printinfocount-5}
		<div class="col-sm-9 box01" style="min-height:<?php echo (151+$printinfocount*30)?>px;">
			{loop $records2 $k $r2}
			<div class="scroll0{$objectcount}content clearfix{if $k>0} noactive{/if}">
				{php $records1=tag("moduleid=".$printmoduleid."&catid=".$r2["catid"]."&condition=thumb!='' and status=3&pagesize=1&order=addtime desc&template=null");}
				{if $records1}
				<a class="texttitle title" href="{$records1[0][linkurl]}" target="_blank" title="{strip_tags($records1[0][title])}">{strip_tags($records1[0][title])}</a>
				<div><img src="{if $records1[0][thumb]}{$records1[0][thumb]}{else}{DT_PATH}template/{$CFG[template]}/skin/images/nopic.png{/if}" align="left">{strip_tags($records1[0][introduce])}</div>
					{if $printinfocount>0}
						{php $records1=tag("moduleid=".$printmoduleid."&catid=".$r2["catid"]."&condition=itemid<>".$records1[0][itemid]." and status=3&pagesize=".$printinfocount."&order=addtime desc&template=null");}
						{loop $records1 $r1}
				<a class="texttitle" href="{$r1[linkurl]}" target="_blank" title="{strip_tags($r1[title])}"><i class="fa fa-certificate"></i> {strip_tags($r1[title])}</a>
						{/loop}
					{/if}
				{else}
					{php $records1=tag("moduleid=".$printmoduleid."&catid=".$r2["catid"]."&condition=status=3&pagesize=".($printinfocount+4)."&order=addtime desc&template=null");}
					{loop $records1 $r1}
				<a class="texttitle" href="{$r1[linkurl]}" target="_blank" title="{strip_tags($r1[title])}"><i class="fa fa-certificate"></i> {strip_tags($r1[title])}</a>
					{/loop}
				{/if}
			</div>
			{/loop}
		</div>
	</div>
</div>
<script language="javascript">
$(document).ready(function (){
	$(".scroll0{$objectcount} span").click(function () {
		var id = $(".scroll0{$objectcount} span").index(this);
		$(".scroll0{$objectcount} span").removeClass("active").eq(id).addClass("active");
		$(".scroll0{$objectcount++}content").hide().eq(id).show();
	});
})
</script>
{/if}